package com.paul.sys.mapper;

import com.paul.sys.model.Symenu;
import com.paul.sys.tools.CommPageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import  java.util.Map;

public interface SymenuMapper {
    List<Symenu> listPrivateByUserId(Map<String, String> param);
    List<Symenu> listPublicAll(Map<String, String> param);
    List<Symenu> listPrivateAll(Map<String, String> param);
    List<Symenu> listByPunid(Map<String, String> param);
    Symenu selectByUnid(String unid);
    List<Symenu> listByPage(@Param("param") Map<String, String> param, @Param("page") CommPageBean pageBean);
    List<Map> getAllTree();
    List<Map> getRoleLink(String unid);
    int updateByPrimaryKey(Symenu symenu);
    int insert(Symenu symenu);
    int delete(String unid);
    List<Map> selectRoleLink(Map<String, Object> param);
    int insertRoleLink(Map<String, Object> param);
    int updateRoleLinkEnable(Map<String, Object> param);
}